.class public Lcom/xingbook/ting/overclass/ListViewWithViewPager;
.super Landroid/widget/ListView;


# instance fields
.field private a:Landroid/view/View;

.field private b:F

.field private c:F


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    iput v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->b:F

    iput v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    iput v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->b:F

    iput v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    return-void
.end method

.method private a(Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    return-void
.end method


# virtual methods
.method public addHeaderView(Landroid/view/View;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    invoke-direct {p0, p1}, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a(Landroid/view/View;)V

    return-void
.end method

.method public addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V
    .locals 0

    invoke-super {p0, p1, p2, p3}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;Ljava/lang/Object;Z)V

    invoke-direct {p0, p1}, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a(Landroid/view/View;)V

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v3, 0x0

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->b:F

    iget-object v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    invoke-virtual {p0}, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->getFirstVisiblePosition()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->a:Landroid/view/View;

    if-ne v0, v1, :cond_0

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    int-to-float v1, v1

    iget v2, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    cmpg-float v1, v1, v2

    if-gez v1, :cond_0

    iget v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    int-to-float v0, v0

    sub-float v0, v1, v0

    iget v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->c:F

    cmpl-float v1, v1, v3

    if-eqz v1, :cond_0

    iget v1, p0, Lcom/xingbook/ting/overclass/ListViewWithViewPager;->b:F

    cmpl-float v1, v1, v3

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    cmpg-float v0, v0, v1

    if-gtz v0, :cond_0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method
